<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
	xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<head th:include="inc/examHeader::header">
</head>
	<body>
		<!--返回-->
		<div class="back" onclick="loadPage('achievementStatistics')"><img src="/images/back.png" /></div>
		<div th:include="header :: header"></div>
		<div class="header-title">
			<span>导出成绩报表</span>
		</div>
		<div class="spare-a">
			<div class="save-bg"><a href="#" class="spare-tj" onclick="outExam()">确 定</a></div>
			<div class="spare-add">
				<ul>
					<li>
						<div class="spare-addl">单位名称：</div>
						<div class="spare-addr"><input type="text" class="spare-add-input" id="dwmc"/></div>
					</li>
				</ul>
			</div>
		</div>
	</body>
	<script type="text/javascript">
	 function outExam(){ 
		 
		 var dwmc=$("#dwmc").val();
	    	$.ajax({
	    		type:"POST",
	    		data:{dwmc:dwmc},
	    		url:"/examReport/outExam",
	    		success:function(data){
	    			if (data.code == "403") {
	    	            $.Zebra_Dialog('<div class="prompt"><div class="success-icon"></div><div class="success-title">没有权限</div></div>', {
	    	                'title': '提示',
	    	                'buttons': ['确定']
	    	            });
	    	        }else{
	    	        	$.Zebra_Dialog('<div class="prompt"><div class="success-icon"></div><div class="success-title">已成功存入D:/techysky/Downloads文件夹</div></div>', {
		    	            'title':'提示',
		    	            'buttons':[{caption: '确定', callback: function() { 
		    	            	window.location.href="/examReport/achievementStatistics";
		    	            }}]
		    	         });
	    	        }
	    			
	    		}
	    	}); 
	    }
	</script>
</html>
